package dviz.tools.helperVO;

import java.util.HashMap;

import dviz.visualSystem.impl.AnimationObject;


/*
 * Serves as an invisible container node to hold child node, usually mapped to classes that serves as a container purpose
 */
public class NodeObject extends AnimationObject {

	public NodeObject(HashMap<String, Object> initVector) {
		super(initVector);
		// Default behavior: Assume all parameter are AnimationObject which
		// needed to be added to the container
		HashMap<String, Object> single = new HashMap<String, Object>();
		for (String k : initVector.keySet()) {
			if (!(initVector.get(k) instanceof AnimationObject))
				continue;
			single.put(k, initVector.get(k));
			addNode(single);
			single.clear();
		}
	}

}
